package com.buba.system.service.impl;

import com.buba.system.pojo.SystemUser;
import com.buba.system.service.LoginService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service("loginServiceImpl")
public class LoginServiceImpl implements LoginService {
    @DubboReference //@Reference 用在消费端，表明使用的是服务端的什么服务
    private LoginService loginService;


    @Override
    public SystemUser login(SystemUser systemUser) {
        return loginService.login(systemUser);
    }

    @Override
    public Integer register(Map<String, Object> map) {
        return loginService.register(map);
    }


}
